//
//  ONEChatXMPPTool.h
//  ONEChat
//
//  Created by 楼楚 on 15/12/16.
//  Copyright © 2015年 Chu Lou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XMPPFramework.h"
#import "Singleton.h"
typedef enum {
    XMPPResultTypeLoginSuccess,
    XMPPResultTypeLoginFailue,
    XMPPResultTypeRegisterSuccess,
    XMPPResultTypeRegisterFailue,
    XMPPResultTypeNetErr
    
    
}XMPPResultType;
typedef void (^XMPPResultBlock)(XMPPResultType Type);

@interface ONEChatXMPPTool : NSObject
singleton_interface(ONEChatXMPPTool)
@property (nonatomic,strong,readonly) XMPPStream *xmppStream;
@property (nonatomic,strong,readonly) XMPPvCardTempModule *vCard;//电子名片
@property (nonatomic,strong,readonly) XMPPRosterCoreDataStorage *rosterStorge;//   花名册数据储存
@property (nonatomic,strong,readonly) XMPPRoster *roster;//    花名册模块

@property (nonatomic,strong,readonly) XMPPMessageArchivingCoreDataStorage *msgStorge;//聊天的数据储存
@property (assign,nonatomic,getter=isRegisterOperation ) BOOL registerOperation;

/*
 用户注销
 */

- (void)xmppUserlogout;

/*
 *用户登录
 */

- (void)xmppUserLogin:(XMPPResultBlock)resultBlock;
/*
 *用户注册
 */

- (void)xmppUserRegister:(XMPPResultBlock)resultBlock;


@end
